package com.example.videoweb.service.impl;

import com.example.videoweb.dao.HotVideoMapper;
import com.example.videoweb.domain.HotVideo;
import com.example.videoweb.service.HotVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotVideoServiceImpl implements HotVideoService {

    @Autowired
    private HotVideoMapper hotVideoMapper;

    @Override
    public boolean update(HotVideo hotVideo) {
        return hotVideoMapper.update(hotVideo) > 0;
    }

    @Override
    public List<Integer> allHotVideo() {
        return hotVideoMapper.allHotVideo();
    }

}
